﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cobit5.BIZ.Web
{
    public class UserSession
    {
        private string userId;
        public string UserId
        {
            get { return userId; }
            //set { userId = value; }
        }
        private string userName;
        public string UserName
        {
            get { return userName; }
            //set { userName = value; }
        }
        private string userType;
        public string UserType
        {
            get { return userType; }
            //set { userType = value; }
        }

        public UserSession(string in_UserId)
        {
            Model.Membership myM = new Model.Membership();
            DAL.Membership optM = new DAL.Membership();

            myM = optM.GetModel(in_UserId);

            this.userId = myM.UserId;
            this.userName = myM.UserName;
            this.userType = myM.Comment;
        }
    }
}
